package com.atguigu.eduservice.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.atguigu.eduservice.mapper.EduCourseDescriptionMapper;
import com.atguigu.eduservice.entity.EduCourseDescription;
import com.atguigu.eduservice.service.impl.EduCourseDescriptionService;

/**
 * @author cyt
 * @create 2020-05-07 10:43
 */
@Service
public class EduCourseDescriptionServiceImpl extends ServiceImpl<EduCourseDescriptionMapper, EduCourseDescription> implements EduCourseDescriptionService {
    @Autowired
    EduCourseDescriptionMapper eduCourseDescriptionMapper;


    // id 查询
    @Override
    public EduCourseDescription getById(String id) {
        QueryWrapper<EduCourseDescription> wrapper = new QueryWrapper<>();
        wrapper.eq("id", id);
        EduCourseDescription eduCourseDescription = eduCourseDescriptionMapper.selectOne(wrapper);
        return eduCourseDescription;
    }
}
